// SingleProcessKeeper.h: interface for the SingleProcessKeeper class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_SINGLEPROCESSKEEPER_H__8177C6DF_0D7C_4A9D_B35B_6E26867FEEED__INCLUDED_)
#define AFX_SINGLEPROCESSKEEPER_H__8177C6DF_0D7C_4A9D_B35B_6E26867FEEED__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

class SingleProcessKeeper  
{
public:
	SingleProcessKeeper(CWinApp * pApp);
	virtual ~SingleProcessKeeper();

  bool IsMarked() const;
  void Mark();
  void Unmark();

protected:
  CWinApp * m_pApp;
  CMutex * m_pMutex;
};

#endif // !defined(AFX_SINGLEPROCESSKEEPER_H__8177C6DF_0D7C_4A9D_B35B_6E26867FEEED__INCLUDED_)
